<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script>

var A = function () {
    };
    A.prototype.n = 1;
    var b = new A();
    A.prototype = {
        n: 2,
        m: 3
    };
    var c = new A();
    console.log(b.n); //2.3.2
    console.log(b.m);
    console.log(c.n);
    console.log(c.m);
   



</script>
,
</html>, 